package com.czxy.demo04;

/**
 * Created by hp on 2020/2/1.
 */
public class Test22 {
    public static void main(String[] args) {
        Sport sport = Create.getSport();
        FootBallSport ballSport = (FootBallSport)sport;
        ballSport.buyFootBall();
        BasketBallSport basketBallSport = (BasketBallSport)Create.getPlayGame();
        basketBallSport.game();
    }
}
